]> dgit.raspbian.org Git - gnome-shell.git/commit
keyboard: Don't check for key.action using strict equality operator
authorJonas Dreßler <verdre@v0yd.nl>
Sun, 17 Nov 2024 18:01:23 +0000 (19:01 +0100)
committerJonas Dreßler <verdre@v0yd.nl>
Tue, 19 Nov 2024 19:23:25 +0000 (20:23 +0100)
commit91ffc4c06bbb0e4c8a5df76642c8576b61fbde9e
treeaa40503d66085db869b16dfeeee85ed7189af2ac
parent4ebc7113ab1af667f13f60700fb5a04fd7b5fd7a
keyboard: Don't check for key.action using strict equality operator

A lot of keys have no action set. In that case key.action is `undefined`,
but the strict equality check of `action !== null` here will return true and
we'll enter the if-case anyway.

That's quite confusing and was not intended like that, so change the
comparison to a less-strict operator.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3286>
js/ui/keyboard.js